<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->
<script type="text/html" id="adminBarDemo">
    <div class="layui-btn-container">
        {foreach name="right_buttons" key="key" item="vo"}
            {{#  if(d.id != '1'){ }}
            <a class="{$vo.class} right_button" lay-event="{$vo.json}">{$vo.title}</a>
            {{#  } }}
        {/foreach}
    </div>
</script>

<script type="text/html" id="switchStatus">
    {{#  if(d.id != 1){ }}
    <input type="checkbox" name="status" value="{{d.id}}" lay-filter="status" lay-skin="switch" {{ d.status== 1 ? 'checked' : '' }}>
    {{#  } else { }}
    <input type="checkbox" name="status" value="{{d.id}}" lay-filter="status" lay-skin="switch" disabled {{ d.status== 1 ? 'checked' : '' }}>
    {{#  } }}
</script>
